package com.dj.product.k2faas.entity.function.config;

import com.dj.product.k2faas.entity.function.Function;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * Created by 丁建 on 2025/9/23 10:32
 *
 * @author 丁建
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@Accessors(chain = true)
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
@JsonSubTypes({ @JsonSubTypes.Type(value = HttpFunctionConfig.class, name = "HTTP") })
public abstract class AbstractFunctionConfig {

    protected abstract Function.FunctionType getType();

}
